Method
Namespace: Ignis
Declared in: Ignis.IgnisExtensions
Adds a component to an existing entity and sets it's value.
public static IContainer<TState> AddComponent<T, TState>(
IContainer<TState> container,
int entityId,
T value
)
container
The ECS container
entityId
Entity ID for which the component should be attached
value
Component data
The ECS container
T
Type of the component
TState
Type of the state parameter passed to container